package top.truism.auth.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import top.truism.auth.interceptor.AuthorizeInterceptor;

@Configuration
public class AuthConfiguration {

  @Bean
  public AuthorizeInterceptor getAuthorizeInterceptor() {
    return new AuthorizeInterceptor();
  }

  @Bean
  public PermissionMetaCollector getPermissionMetaCollector() {
    return new PermissionMetaCollector();
  }

}
